package user;

public class Teacher extends User {
    //特有方法，查看管理的学生及其信息
    //添加学生到自己班级管理
    public static int count;

    public Teacher(String name, String id, char sex, int age, String password, String phoneNum) {
        super(name, id, sex, age, password, phoneNum);
    }

    //查看某个学生信息方法
    public void checkStu(Student stu) {
        System.out.println(stu);
    }

    @Override
    public String toString() {
        return getName() +
                "\t" + getId() +
                "\t" + getSex() +
                "\t" + getAge() +
                "\t" + getPassword() +
                "\t" + getPhoneNum();
    }

    //设置学生成绩
    public void setScore(Student stu, double score) {
        stu.setScore(score);
    }
}
